

///网络请求结果
class ApiResult {
  ApiResult({
      this.code, 
      this.msg, 
      this.data,});

  ApiResult.fromJson(dynamic json) {
    code = json['code'];
    success = json['code']==0;
    msg = json['msg'];
    data = json['data'];
  }
  int? code;
  String? msg;
  bool success = false;
  dynamic data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['success'] = success;
    map['msg'] = msg;
    map['data'] = data;
    return map;
  }

}